package com.zdp.seckill.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author sesshomaru
 * @date 2021/6/19 15:02
 */
@Repository
public interface ItemStockMapperCustom {

    // 扣减库存
    int decreaseStock(@Param("itemId")Integer itemId, @Param("amount")Integer amount);
}
